package com.weiyuwqj.app.mobile.selected;

import com.weiyuwqj.api.service.SysPictureService;
import com.weiyuwqj.api.common.Paginator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangyong on 2016/1/14.
 */
@Controller
public class MobileSelectedActivityController {

    @Autowired
    private SysPictureService pictureService;
    /**
     * 活动列表
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/mobile/selected/activity")
    public Object activity(Paginator p){
        Map map=new HashMap();
        map.put("pictureType",7);
        return pictureService.getList(p,map);
    }
}
